<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
    <Script file="MasterLootLogger.lua"></Script>
	<GameTooltip name="MasterLootLoggerTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true">
		<Scripts>
   			<OnLoad>
    			self:SetOwner(UIParent, "ANCHOR_NONE");
   			</OnLoad>
  		</Scripts>
 	</GameTooltip>
    <!--TEMPLATES-->
    <Button name="MasterLootLoggerColumnHeaderTemplate" virtual="true">
        <Size>
			<AbsDimension x="10" y="19"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="5" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="4" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="10" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.59375"/>
				</Texture>
			</Layer>
		</Layers>
		<ButtonText name="$parentText">
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="8" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontHighlightSmall"/>
		<NormalTexture name="$parentArrow" file="Interface\Buttons\UI-SortArrow">
			<Size>
				<AbsDimension x="9" y="8"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="3" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="0.5625" top="0" bottom="1.0"/>
		</NormalTexture>
		<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="5" y="24"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT">
					<Offset>
						<AbsDimension x="4" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
        <Scripts>
			<OnClick>
				if ( self.sortType ) then
				    MasterLootLogger:SortLoot(self.sortType);
				end
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
	</Button>
	<Button name="MasterLootLoggerButtonTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="769" y="37"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentItemName" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="187" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="41" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentSource" inherits="GameFontHighlightSmall" justifyH="LEFT"> <!--Was Level-->
					<Size>
						<AbsDimension x="150" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="234" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentWinnerName" inherits="GameFontHighlightSmall" justifyH="LEFT"><!--Was ClosingTime Frame-->
					<Size>
						<AbsDimension x="106" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="389" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLootType" inherits="GameFontHighlightSmall" justifyH="LEFT"><!--was buyout price frame-->
					<Size>
						<AbsDimension x="57" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="500" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentWinValue" inherits="GameFontHighlightSmall" justifyH="RIGHT"><!--Was Bid Status-->
					<Size>
						<AbsDimension x="50" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="562" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentTime" inherits="GameFontHighlightSmall" justifyH="RIGHT"><!--Was Current Bid Frame-->
					<Size>
						<AbsDimension x="148" y="32"/><!-- 3 less than expected-->
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="617" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentLeft" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="34" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="1.0"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="0" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.75" right="0.828125" top="0" bottom="1.0"/>
				</Texture>
				<Texture file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
					<Size>
						<AbsDimension x="10" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.078125" right="0.75" top="0" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentItem">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentIconTexture"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						self:GetParent():LockHighlight();
                        MasterLootLogger:MasterLootLoggerItem_OnEnter(self, self:GetParent():GetID() + FauxScrollFrame_GetOffset(MasterLootLogger.scrollframe))
					</OnEnter>
					<OnLeave>
                        if (not (MasterLootLogger.selectedItemIndex and self:GetParent():GetID() + FauxScrollFrame_GetOffset(MasterLootLogger.scrollframe) == MasterLootLogger.selectedItemIndex)) then
						    self:GetParent():UnlockHighlight();
                        end
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</NormalTexture>
				<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
				<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
			</Button>
		</Frames>
		<HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="735" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="33" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
		</HighlightTexture>
        <Scripts>
            <OnClick>
                if (self:GetID()) then
                    MasterLootLogger:MasterLootLoggerButton_OnClick(self:GetID());
                end
            </OnClick>
        </Scripts>
	</Button>
    <!--END TEMPLATES-->
    <Frame name="MasterLootLoggerFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
		<Size>
			<AbsDimension x="832" y="447"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\FriendsFrame\FriendsFrameScrollIcon">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTopLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTop" file="Interface\AuctionFrame\UI-AuctionFrame-Auction-Top">
					<Size>
						<AbsDimension x="320" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\AuctionFrame\UI-AuctionFrame-Auction-TopRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBotLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBot" file="Interface\AuctionFrame\UI-AuctionFrame-Auction-Bot">
					<Size>
						<AbsDimension x="320" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBotRight" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-BotRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBot" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="3" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Frame name="$parentContent" hidden="false">
				<Size>
					<AbsDimension x="758" y="447"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentTotals" inherits="GameFontNormalSmall">
							<Size>
								<AbsDimension x="298" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM">
									<Offset>
										<AbsDimension x="-10" y="127"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
                    <!--DROP DOWN HEADER EXAMPLE
					<Button name="WhoFrameColumnHeader2" inherits="MasterLootLoggerColumnHeaderTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="WhoFrameColumnHeader1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Frames>
							<Frame name="WhoFrameDropDown" inherits="UIDropDownMenuTemplate" id="1">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="-15" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Layers>
									<Layer level="OVERLAY">
										<Texture name="WhoFrameDropDownHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" hidden="true">
											<Anchors>
												<Anchor point="TOPLEFT">
													<Offset>
														<AbsDimension x="15" y="3"/>
													</Offset>
												</Anchor>
												<Anchor point="BOTTOMRIGHT">
													<Offset>
														<AbsDimension x="-30" y="-2"/>
													</Offset>
												</Anchor>
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<Scripts>
									<OnLoad function="WhoFrameDropDown_OnLoad"/>
									<OnShow>
										UIDropDownMenu_Initialize(self, WhoFrameDropDown_Initialize);
										UIDropDownMenu_SetSelectedID(self, 1);
									</OnShow>
									<OnEnter>
										WhoFrameDropDownHighlightTexture:Show();
									</OnEnter>
									<OnLeave>
										WhoFrameDropDownHighlightTexture:Hide();
									</OnLeave>
									<OnMouseUp>
										if ( WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType ) then
											SortWho(WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType);
											PlaySound("igMainMenuOptionCheckBoxOn");
										end
									</OnMouseUp>
								</Scripts>
							</Frame>
						</Frames>
						<Scripts>
							<OnLoad>
								WhoFrameColumn_SetWidth(self, 105);
							</OnLoad>
						</Scripts>
					</Button>
                    -->
					<Button name="$parentColumnHeader1" inherits="MasterLootLoggerColumnHeaderTemplate" text="Item">
						<Size>
							<AbsDimension x="195" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="65" y="-52"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Item")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Item"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentColumnHeader2" inherits="MasterLootLoggerColumnHeaderTemplate" text="Source">
						<Size>
							<AbsDimension x="157" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentColumnHeader1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Source")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Source"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentColumnHeader3" inherits="MasterLootLoggerColumnHeaderTemplate" text="Winner">
						<Size>
							<AbsDimension x="113" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentColumnHeader2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Winner")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Winner"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentColumnHeader4" inherits="MasterLootLoggerColumnHeaderTemplate" text="Type">
						<Size>
							<AbsDimension x="64" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentColumnHeader3" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Type")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Type"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentColumnHeader5" inherits="MasterLootLoggerColumnHeaderTemplate" text="Value">
						<Size>
							<AbsDimension x="57" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentColumnHeader4" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Value")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Value"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentColumnHeader6" inherits="MasterLootLoggerColumnHeaderTemplate" text="Time">
						<Size>
							<AbsDimension x="158" y="19"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentColumnHeader5" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-2" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:SortLoot("Time")
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Time"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="MasterLootLoggerButton1" inherits="MasterLootLoggerButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="27" y="-76"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton2" inherits="MasterLootLoggerButtonTemplate" id="2">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton1" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton3" inherits="MasterLootLoggerButtonTemplate" id="3">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton2" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton4" inherits="MasterLootLoggerButtonTemplate" id="4">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton3" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton5" inherits="MasterLootLoggerButtonTemplate" id="5">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton4" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton6" inherits="MasterLootLoggerButtonTemplate" id="6">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton5" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton7" inherits="MasterLootLoggerButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton6" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton8" inherits="MasterLootLoggerButtonTemplate" id="8">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton7" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="MasterLootLoggerButton9" inherits="MasterLootLoggerButtonTemplate" id="9">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="MasterLootLoggerButton8" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="$parentDeleteButton" inherits="UIPanelButtonTemplate" text="Delete">
						<Size>
							<AbsDimension x="80" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="66" y="14"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:DeleteClicked();
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Delete"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentEditButton" inherits="UIPanelButtonTemplate" text="Edit">
						<Size>
							<AbsDimension x="80" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="$parentDeleteButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:EditClicked();
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Edit"])
							</OnLoad>
						</Scripts>
					</Button>
					<Button name="$parentAddButton" inherits="UIPanelButtonTemplate" text="Add">
						<Size>
							<AbsDimension x="80" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="RIGHT" relativeTo="$parentEditButton" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:AddClicked();
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Add"])
							</OnLoad>
						</Scripts>
					</Button>
                    <Button name="$parentExportButton" inherits="UIPanelButtonTemplate" text="Export">
						<Size>
							<AbsDimension x="84" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="16" y="14"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:ExportClicked();
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Export"])
							</OnLoad>
						</Scripts>
					</Button> 
                    <Button name="$parentClearButton" inherits="UIPanelButtonTemplate" text="Clear">
						<Size>
							<AbsDimension x="84" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$parentExportButton" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="-3" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								MasterLootLogger:ClearClicked();
							</OnClick>
							<OnLoad>
								self:SetText(MLM_Local["Clear"])
							</OnLoad>
						</Scripts>
					</Button>
					<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="625" y="335"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="40" y="-74"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" y="5"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
								</Texture>
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="106"/>
									</Size>
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="-2"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnVerticalScroll>
    							FauxScrollFrame_OnVerticalScroll(self, offset, 37, function() MasterLootLogger:MasterLootLoggerFrame_Update() end)
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				MasterLootLogger:OnLoad(self)
			</OnLoad>
			<OnDragStart>
				self:StartMoving()
            </OnDragStart>
			<OnDragStop>
				self:StopMovingOrSizing()
            </OnDragStop>
			<OnUpdate>
				MasterLootLogger:OnUpdate()
			</OnUpdate>
		</Scripts>
	</Frame>
<!--======================ADD/EDIT FRAME START=======================-->
    <Frame name="MasterLootLoggerAddEditFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
        <Size>
			<AbsDimension x="350" y="205"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
			edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<TileSize>
				<AbsValue val="10" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="10" />
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset top="3" left="3" right="3" bottom="3" />
			</BackgroundInsets>
			<Color r="0" g="0" b="0" a="1" />
		</Backdrop>
        <Layers>
            <Layer level="ARTWORK">
                <FontString name="$parentTitle" text="Add/Edit Item" justifyH="CENTER" justifyV ="CENTER" inherits="GameFontNormalLarge">
                    <Size>
			            <AbsDimension x="350" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="TOP" relativePoint="TOP"/>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Add/Edit Item"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentItemLabel" text="Item" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="340" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentTitle">
                            <Offset>
                                <AbsDimension x="5" y="14"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Item"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentSourceLabel" text="Source" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="340" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentItemLabel">
                            <Offset>
                                <AbsDimension x="0" y="-20"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Source"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentWinnerLabel" text="Winner" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="130" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentSourceLabel">
                            <Offset>
                                <AbsDimension x="0" y="-20"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Winner"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentTypeLabel" text="Type" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="130" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentWinnerLabel"/>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Type"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentValueLabel" text="Value" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="80" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentTypeLabel"/>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Value"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentDateLabel" text="Month/Day/Year" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="140" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentWinnerLabel">
                            <Offset>
                                <AbsDimension x="0" y="-20"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Month/Day/Year"])
						</OnLoad>
					</Scripts>
                </FontString>
                <FontString name="$parentTimeLabel" text="Time" justifyH="LEFT" justifyV ="BOTTOM" inherits="GameFontNormal">
                    <Size>
			            <AbsDimension x="80" y="25"/>
	            	</Size>
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentDateLabel"/>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Time"])
						</OnLoad>
					</Scripts>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
            <EditBox name="$parentItem" autoFocus="false">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="320" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentItemLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="256" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Minute"]:SetFocus() else _G[self:GetParent():GetName().."Source"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentSource" autoFocus="false">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="320" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentSourceLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Item"]:SetFocus() else _G[self:GetParent():GetName().."Winner"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentWinner" autoFocus="false">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="110" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentWinnerLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Source"]:SetFocus() else _G[self:GetParent():GetName().."Value"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
			<Frame name="$parentType" inherits="UIDropDownMenuTemplate">
				<Size>
                    <AbsDimension x="110" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentTypeLabel">
                        <Offset>
                            <AbsDimension x="-18" y="-3"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <FontString inherits="ChatFontNormal"/>
                <Scripts>
                    <OnLoad>
                        MasterLootLogger.addedittypedropdown = self
                    </OnLoad>
                </Scripts>
            </Frame>
            <!--
			<EditBox name="$parentType" autoFocus="false" numeric="true" letters="1">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="110" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentTypeLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="75" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Winner"]:SetFocus() else _G[self:GetParent():GetName().."Value"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
			-->
            <EditBox name="$parentValue" autoFocus="false" numeric="true">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="60" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentValueLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="20" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.078125" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="20" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.921875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Winner"]:SetFocus() else _G[self:GetParent():GetName().."Month"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentMonth" autoFocus="false" numeric="true" letters="2">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="20" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentDateLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.05859375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.94140625" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Value"]:SetFocus() else _G[self:GetParent():GetName().."Day"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentDay" autoFocus="false" numeric="true" letters="2">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="20" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentMonth">
                        <Offset>
                            <AbsDimension x="20" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.05859375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.94140625" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Month"]:SetFocus() else _G[self:GetParent():GetName().."Year"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentYear" autoFocus="false" numeric="true" letters="4">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="40" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentDay">
                        <Offset>
                            <AbsDimension x="20" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.05859375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.94140625" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Day"]:SetFocus() else _G[self:GetParent():GetName().."Hour"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentHour" autoFocus="false" numeric="true" letters="2">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="20" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentTimeLabel">
                        <Offset>
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.05859375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.94140625" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Year"]:SetFocus() else _G[self:GetParent():GetName().."Minute"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <EditBox name="$parentMinute" autoFocus="false" numeric="true" letters="2">
                <FontString inherits="ChatFontNormal"/>
                <Size>
                    <AbsDimension x="20" y="32"/>
                </Size>
                <Anchors>
                    <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHour">
                        <Offset>
                            <AbsDimension x="20" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.05859375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="15" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.94140625" right="1.0" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="5" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/>
						</Texture>
					</Layer>
				</Layers>
                <Scripts>
                    <OnEscapePressed>
                        self:ClearFocus();
                    </OnEscapePressed>
                    <OnTabPressed>
                        if(IsShiftKeyDown()) then _G[self:GetParent():GetName().."Hour"]:SetFocus() else _G[self:GetParent():GetName().."Item"]:SetFocus() end
                    </OnTabPressed>
                </Scripts>
            </EditBox>
            <Button name="$parentConfirm" text="Confirm" inherits="UIPanelButtonTemplate">
                <Size>
                    <AbsDimension x="100" y="22"/>
                </Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
                        <Offset x="-12" y="10"/>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnClick>
                        MasterLootLogger:AddEditFrameConfirmClicked();
                    </OnClick>
					<OnLoad>
						self:SetText(MLM_Local["Confirm"])
					</OnLoad>
                </Scripts>
            </Button>
        </Frames>
    	<Scripts>
            <OnLoad>
				MasterLootLogger:AddEditFrameOnLoad(self)
			</OnLoad>
			<OnDragStart>
				self:StartMoving()
            </OnDragStart>
			<OnDragStop>
				self:StopMovingOrSizing()
            </OnDragStop>
            <OnHide>
                MasterLootLogger:StopEdit();
            </OnHide>
		</Scripts>
    </Frame>
<!--=======================EXPORT FRAME START========================-->
    <Frame name="MasterLootLoggerExportFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
        <Size>
			<AbsDimension x="500" y="350"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
			edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<TileSize>
				<AbsValue val="10" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="10" />
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset top="3" left="3" right="3" bottom="3" />
			</BackgroundInsets>
			<Color r="0" g="0" b="0" a="1" />
		</Backdrop>
        <Layers>
            <Layer level="ARTWORK">
                <FontString name="$parentText" font="GameFontNormal" text="Copy the data below and paste it to an external location to save it:">
                    <Size>
                        <AbsDimension x="460" y="10"/>
                    </Size>
                    <Anchors>
                        <Anchor point="TOP" relativePoint="TOP">
                            <Offset>
                                <AbsDimension x="0" y="-20"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
					<Scripts>
						<OnLoad>
							self:SetText(MLM_Local["Copy the data below"])
						</OnLoad>
					</Scripts>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <Button name="$parentCloseButton" inherits="StaticPopupButtonTemplate" text="Close">
                <Anchors>
                    <Anchor point="BOTTOM" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="15"/>
                        </Offset>
                    </Anchor>
                </Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide();
					</OnClick>
					<OnLoad>
						self:SetText(MLM_Local["Close"])
					</OnLoad>
				</Scripts>
            </Button>
			<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate2">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint ="BOTTOMLEFT" relativeTo="$parentText">
						<Offset x="0" y="-10"/>
					</Anchor>
					<Anchor point="TOPRIGHT" relativePoint ="BOTTOMRIGHT" relativeTo="$parentText">
						<Offset x="-20" y="0"/>
					</Anchor>
					<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="$parentCloseButton">
						<Offset x="0" y="10"/>
					</Anchor>
				</Anchors>
				<Frames>
					<EditBox name="$parentEditBox" multiLine="true" autoFocus="false" font="GameFontHighlight">
						<Size>
							<RelDimension x=".923913" y="1"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:GetParent():SetScrollChild(self)
							</OnLoad>
							<OnEscapePressed>
								self:ClearFocus()
							</OnEscapePressed>
						</Scripts>
					</EditBox>
				</Frames>
			</ScrollFrame>
        </Frames>
    </Frame>
</Ui>